package com.jming.jike.dto.front;

import com.jming.jike.common.ValidatorGroup.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/05/23
 */
@Data
public class PayDTO {

    @ApiModelProperty(value = "订单号")
    @NotBlank(message = "订单号不能为空", groups = {Update.class})
    private String orderId;

    @ApiModelProperty(value = "地址id")
    @NotNull(message = "地址id不能为空", groups = {Update.class})
    private Long addressBookId;

    @ApiModelProperty(value = "支付方式 1:微信 2:支付宝")
    @NotNull(message = "支付方式不能为空", groups = {Update.class})
    private Integer payMethod;

    @ApiModelProperty(value = "备注信息")
    private String remark;

}
